package com.laiketui.app.controller.index;

import com.laiketui.common.api.index.IndexDataService;
import com.laiketui.core.domain.Result;
import com.laiketui.domain.index.IndexData;
import com.laiketui.domain.vo.index.IndexDataVo;
import com.laiketui.root.annotation.HttpApiMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页数据展示
 */
@RestController
public class IndexDataController {
    @Autowired
    private IndexDataService indexDataService;

    @PostMapping("indexDataList")
    @HttpApiMethod(urlMapping = "app.index.indexDataList")
    public Result indexDataList(IndexDataVo vo){
        return Result.success(indexDataService.indexDataList(vo));
    }
}
